// pages/demand/bidding-success.js
const app = getApp()
Page({
    data: {
        violationLst: [],
        finishList: [],
    },
    onLoad: function(options) {
        this.setData(options)
    },
    onShow() {
        this.loadData()
    },
    loadData() {
        wx.showLoading({
            title: '加载中...',
        })
        app.http.post('rest/ticket/queryById.do', {
            data: this.data.id
        }).then(res => {
            this.setData(Object.assign({
				no_complete_points: Math.abs(res.obj.pointed - res.obj.points),
            }, res.obj))
            wx.hideLoading()
        })
    },
    callPhone() {
        wx.makePhoneCall({
            phoneNumber: this.data.member.mobile
        })
    },
    tocheckSuccess() {
        wx.navigateTo({
            url: './check-success?id=' + this.data.id,
        })
    },
   
})